package web.sso.http.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.reactive.config.WebFluxConfigurer;
import org.springframework.web.reactive.result.method.annotation.ArgumentResolverConfigurer;
import web.sso.http.process.HttpFormProcess;
import web.sso.http.process.HttpHeaderProcess;
import web.sso.http.process.HttpParamProcess;

/**
 * DATE: 2020/1/20
 * TIME: 4:26 下午
 *
 * @author：huangliming
 */
@Configuration
public class AutoConfig implements WebFluxConfigurer {

    @Override
    public void configureArgumentResolvers(ArgumentResolverConfigurer configurer) {
        configurer.addCustomResolver(new HttpParamProcess());
        configurer.addCustomResolver(new HttpHeaderProcess());
        configurer.addCustomResolver(new HttpFormProcess());
    }
}
